/*
 * @Description: 描述信息
 * @Version: 版本号
 * @Author: xuebao
 * @Date: 2023-12-10 16:00:31
 * @LastEditors: xuebao
 * @LastEditTime: 2023-12-10 16:24:49
 */
import { Result, Button } from 'antd'
import { useNavigate } from 'react-router-dom'
export default function Error404() {
  const navigate = useNavigate()
  const handleClick = () => {
    navigate('/')
  }
  return (
    <Result
      status={404}
      subTitle='抱歉您访问的页面不存在。'
      extra={[
        <Button type='primary' key='back' onClick={handleClick}>
          回首页
        </Button>
      ]}
    />
  )
}
